package org.redis.cluster.admin.result;

public class ResultBuilder {

	/**
	 * 成功
	 * @param data
	 * @return
	 */
	public static Result success(Object data) {
		return new Result(Result.SUCCESS_CODE,data,true);
	}
	
	/**
	 * 错误
	 * @param data
	 * @return
	 */
	public static Result failed(Object data) {
		return new Result(Result.ERROR_CODE,data,false);
	}
}